/**
 * @author lscl
 * @version 1.0
 * @intro:
 */

public class Demo05_方法的调用 {

    public static void main(String[] args) {

//        int result = getSum(10, 30);
//        System.out.println("result的结果: " + result);


        // 在调用方法做运算时,这个方法必须要有返回值
        System.out.println("result的结果: " + getSum(10,30));
        System.out.println("result的结果: " + test());
    }

    public static int test(){
        return 100;
    }

    public static int getSum(int a, int b) {
        int sum = a + b;

        return sum;
    }

}
